<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.io.web.override">

  <require>org.nuxeo.ecm.platform.io.web</require>

  <documentation>
IO client action contributions.

  </documentation>
  <extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <!-- old export icon for non folderish docs => disabled -->
    <action enabled="false" icon="/icons/zip.png" id="xmlExport" label="action.xml.export" link="#{importExportAction.doExportDocument()}" order="17">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>not_folder</filter-id>
    </action>

    <!-- old export icon for non folderish docs => disabled -->
    <action enabled="false" icon="/icons/zip.png" id="xmlTreeExport" label="action.xmltree.export" link="#{importExportAction.doExportFolder()}" order="17">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>folder</filter-id>
    </action>

    <!-- deprecated since 7.2. Exports are now exposed as renditions, see NXP-16585 -->
    <action enabled="false" icon="/icons/export.png" id="exportView" label="label.exportview" link="export" order="80">
      <category>DOCUMENT_UPPER_ACTION</category>
    </action>

    <action icon="/icons/xml.png" id="exportViewXMLExport" label="label.exportview.xmlExport" link="#{importExportAction.documentXMLExportURL}" order="10">
      <category>DOCUMENT_EXPORT_VIEW_ACTION</category>
    </action>

    <action icon="/icons/zip_export.png" id="exportViewZIPExport" label="label.exportview.zipExport" link="#{importExportAction.documentZIPTreeExportURL}" order="20">
      <category>DOCUMENT_EXPORT_VIEW_ACTION</category>
      <filter-id>not_folder</filter-id>
    </action>

    <action icon="/icons/zip_tree_export.png" id="exportViewTreeZIPExport" label="label.exportview.zipTreeExport" link="#{importExportAction.documentZIPTreeExportURL}" order="30">
      <category>DOCUMENT_EXPORT_VIEW_ACTION</category>
      <filter-id>folder</filter-id>
    </action>

    <action icon="/icons/action_export_zip.gif" id="WORKLIST_XMLEXPORT" label="command.clipboard.xmlZipExport" link="#{importExportAction.exportCurrentList()}">
      <category>DEFAULT_LIST</category>
      <filter id="currentWorkListIsNotEmptyXML">
        <rule grant="false">
          <condition>#{clipboardActions.workListEmpty}</condition>
        </rule>
      </filter>
    </action>

  </extension>

</component>
